export default {
    onMousedown(opt, canvas) {
    },
    onMousemove(opt, canvas) {
    },
    onMouseup(opt,canvas) {
    },
    onMousewheel(opt,canvas) {
        var delta = opt.e.deltaY;
        var zoom = canvas.getZoom();
        console.log(zoom)
        zoom *= 0.999 ** delta;
        if (zoom > 20) zoom = 20;
        if (zoom < 0.01) zoom = 0.01;
        canvas.zoomToPoint({ x: opt.e.offsetX, y: opt.e.offsetY }, zoom);
        opt.e.preventDefault();
        opt.e.stopPropagation();
    }
}